<?php
// Set the content type to Javascript
header("Content-type: text/javascript");

// Disallow caching
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

$array = array(
   "show_paper_url" => OC_Helper::linkToRoute("resume_showsingleanswer"),
   "redirect_url" => OC_Helper::linkToRoute('company_login'),
   "joblist_url" => OC_Helper::linkToRoute('resumes_joblist'),
   "taglist_url" => OC_Helper::linkToRoute('resumes_taglist'),
   "sendoffer" => OC_Helper::linkToRoute("calendar_sendoffer"),
   "setinterviewresult" => OC_Helper::linkToRoute("calendar_setinterviewresult"),
   "setofferresult" => OC_Helper::linkToRoute("calendar_setofferresult"),
   "declinesend" => OC_Helper::linkToRoute("calendar_declinesend"),
   "interviewfeedbackremind" => OC_Helper::linkToRoute('calendar_interviewfeedbackremind'),
   "setentryresult" => OC_Helper::linkToRoute("calendar_setentryresult"),
   "alljoblist_url" => OC_Helper::linkToRoute('resumes_joblist',array('alljobs'=>1)),
   "cancelevent" => OC_Helper::linkToRoute("calendar_cancelevent"),
   "getcityurl" => OC_Helper::linkToRoute("city_listc"),
   "getprovinceurl" => OC_Helper::linkToRoute("city_listp"),
   "offsitesearch_url" => OC_Helper::linkToRoute('resumes_offsitesearch'),
   "offsitesearch_joblist" => OC_Helper::linkToRoute('calendar_joblist'),
   "resume_addcomments" => OC_Helper::linkToRoute('resume_addcomments'),
   "resume_getcomments" => OC_Helper::linkToRoute('resume_getcomments'),
   "jobsetupurl" => OC_Helper::linkToRoute("jobpos_setup"),
   "resume_delcomments" => OC_Helper::linkToRoute('resume_delcomments')
);

// Echo it
foreach ($array as  $setting => $value) {
   echo("var ". $setting ."=\"".$value."\";\n");
}
